package me.shurufa.testactivities;

import android.os.Bundle;
import android.text.TextUtils;
import android.widget.TextView;

import butterknife.Bind;
import me.shurufa.R;
import me.shurufa.activities.BaseActivity;
import me.shurufa.utils.Constants;

/**
 * 在此写用途
 *
 * @FileName: me.shurufa.testactivities.TestQRScanResultActivity.java
 * @author: kHRYSTAL
 * @email: 723526676@qq.com
 * @date: 2016-01-21 10:41
 */
public class TestQRScanResultActivity extends BaseActivity {
    @Bind(R.id.text_test)
    TextView textTest;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        activity_layout_res = R.layout.activity_test;
        super.onCreate(savedInstanceState);
        String stringExtra = getIntent().getStringExtra(Constants.EXTRA_SCAN_RESULT);
        if (!TextUtils.isEmpty(stringExtra)){
            textTest.setText(stringExtra);
        }
    }
}
